<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>美嘉饲料</title>
<script type="text/javascript" src="<%=basePath%>skin/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>skin/js/common.js"></script>
</head>
  
<body>
<c:import url="../left.jsp" />
<form action="<%=basePath%>member/return/request.shtml" id="form1" name="form1" method="post">
	<input type="hidden" name="orderItemId" value="${orderItem.id}" />
	<table>
		<tr>
			<td>商品编号</td>
			<td>商品名称</td>
			<td>商品价格</td>
			<td>数量</td>
			<td>小计</td>
		</tr>
		<c:if test="${not empty orderItem }">
			<tr>
				<td>${orderItem.sn }</td>
				<td>${orderItem.name }</td>
				<td><fmt:formatNumber value="${orderItem.price }" pattern="0.00"/></td>
				<td><fmt:formatNumber value="${orderItem.quantity }" pattern="0"/></td>
				<td><fmt:formatNumber value="${orderItem.subtotal }" pattern="0.00"/></td>
			</tr>
		</c:if>
	</table>
	<c:forEach items="${returnMethods }" var="returnMethod">
		<input type="radio" name="returnMethodId" value="${returnMethod.id }" />${returnMethod.name} <br/>
	</c:forEach>
	<c:forEach items="${refundMethods }" var="refundMethod">
		<input type="radio" name="refundMethodId" value="${refundMethod.id }" />${refundMethod.name} <br/>
	</c:forEach>
</form>
<table>
	<tr>
		<td>
			<input type="button" value="确定" class="button" onclick="save()">
			<input type="button" value="返回" class="button" onclick="location.href='<%=basePath%>member/return/orderList.shtml'" />
		</td>
	</tr>
</table>
</body>
</html>
